package java07;
import java.util.Scanner;

class Account1{
	private int balance;
public Account1(int balance) {
		super();
		this.balance = balance;
	}
	public int getBalance() {
		return balance;
	}
	public synchronized void deposit(int money){
		synchronized(this){
			balance = balance + money;
		}
	}
	public void withdraw(int money){
		synchronized (this) {
			balance = balance - money;
		}
	}
}
public class Java74 {

}
